//
//  HomeTitleButton.swift
//  iOS07-Weibo-LPK
//
//  Created by 罗培克 on 6/26/15.
//  Copyright © 2015 lpk. All rights reserved.
//

import UIKit

class HomeTitleButton: UIButton {

    override func layoutSubviews() {
        super.layoutSubviews()
        
        // error
//        titleLabel?.frame.offset(dx: -imageView!.bounds.width, dy: 0)
//        imageView?.frame.offset(dx: titleLabel!.bounds.width, dy: 0)
        
        titleLabel?.frame.origin.x = 0
        imageView?.frame.origin.x = (titleLabel?.frame.width)! + 5.0
    }

}
